gRevAutoCreateProfiles
Type
keyword
Summary
A special global variable that specifies whether to automatically create a profile when you switch to a new profile.
Syntax
gRevAutoCreateProfiles
Description
Set the gRevAutoCreateProfiles variable to true when adding a new profile. When false, attempts to change to a profile that does not exist are ignored.
Each object can have one or more profiles, which include settings for each property in the object's properties. The gRevAutoCreateProfiles variable controls what happens when you set an object's profile to one that does not currently exist. If true, then the new profile will be created.
The gRevAutoCreateProfiles global variable can also be changed in the Preferences dialog box:
- Choose LiveCode → Preferences from the menubar.
- Choose "Property Profiles" from the menu at the top.
- Click "Create profiles automatically".
Examples
global gRevAutoCreateProfiles
put true into gRevAutoCreateProfiles
set the revProfile of me to "NewProfile"
Related
glossary: object, property, variable, property profile, global
library: Profile library
property: properties
Compatibility and Support
Introduced
LiveCode 2.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile